from sqlalchemy.orm import Session

from module_sys.entity.user import User


class UserDao:
    """
    获得全部用户信息
    """

    @classmethod
    def getAllUser(cls, db: Session):
        query_user_info = db.query(User).all()
        return query_user_info
